package com.stylefeng.guns.modular.product.service.impl;

import com.stylefeng.guns.modular.product.model.Customer;
import com.stylefeng.guns.modular.product.dao.CustomerMapper;
import com.stylefeng.guns.modular.product.service.ICustomerService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author stylefeng123
 * @since 2019-03-16
 */
@Service
public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer> implements ICustomerService {

    @Override
    public Customer getByUserName(String userName) {
        return this.baseMapper.getByUserName(userName);
    }

    @Override
    public List<Customer> getCustomerList(String userName) {
        return this.baseMapper.getCustomerList(userName);
    }
}
